/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.vienthonga.common.utils;

import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.Action;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionMessage;
import org.apache.struts.action.ActionMessages;

/**
 *
 * @author dangkhoa
 */
public class MessageUtils {

    public static ActionMessages findMessages(String [] messageKeys) {
        ActionMessages messages = new ActionErrors();
        for(String key : messageKeys){
            messages.add(key, new ActionMessage(key));
        }
        return messages;
    }
}
